#include <iostream>
#include <string>
using namespace std;
class Student{
    private:int no;
            string name;
            char sex;
            int age;
    public:Student(int no,string n,char s,int a):no(no),name(n),sex(s),age(a){}
           void show(){
               cout<<"Num:"<<no<<endl;
               cout<<"Name:"<<name<<endl;
               cout<<"Sex:"<<sex<<endl;
               cout<<"Age:"<<age<<endl;
           }
};
class Lesson{
    private:int cno;
            string cname;
            int chour;
    public:Lesson(int cno,string cn,int ch):cno(cno),cname(cn),chour(ch){}
           void show(){
               cout<<"Cno:"<<cno<<endl;
               cout<<"Cname:"<<cname<<endl;
               cout<<"Chour:"<<chour<<endl;
           }
};
class SL:public Lesson,public Student{
    private:int score;
    public:SL(int no,string n,char s,int a,int cno,string cn,int ch,int score):Student(no,n,s,a),Lesson(cno,cn,ch),score(score){}
           void show(){
               Student::show();
               Lesson::show();
               cout<<"Score:"<<score<<endl;
           }
};
int main(){
	SL s1(25,"MrLin",'S',25,911,"c++",25,100);
	s1.show();
    return 0;
}